package com.example.mapper;

import com.example.entity.ActivityRecord;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityRecordMapper {

    List<ActivityRecord> selectAll(ActivityRecord activityRecord);

    void add(ActivityRecord activityRecord);

    @Delete("delete from activity_record where id=#{id}")
    void delete(Integer id);


    void update(ActivityRecord activityRecord);
}
